package com.ys.web.sys.banner;

import com.ys.utils.base.http.ResponseHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/banner/")
public class BannerController {
    @Autowired
    private BannerService bannerService;

    @RequestMapping("list")
    public String list(){
        return ResponseHandler.list(bannerService.list());
    }
}
